package com.house.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.EntityListeners;
import javax.validation.constraints.NotNull;

/**
 * @author: GGP
 * @description: 房间DTO
 * @time: 2023-04-15 15:53
 **/
@ApiModel(description = "房间请求实体类",value = "RoomDTO")
@EntityListeners(AuditingEntityListener.class)
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
public class RoomDTO {

	/** id */
	private Integer id;

	/** 房源id */
	@NotNull(message = "房源不能为空")
	@ApiModelProperty(name = "houseId",value = "房源id",example = "1")
	private Integer houseId;

	/** 房间号 */
	@NotNull(message = "房间号不能为空")
	@ApiModelProperty(name = "number",value = "房间号",example = "501")
	private Integer number;

	/** 房间状态 */
	@ApiModelProperty(value = "房间状态",name = "roomStatus",required = true,example = "0")
	private Integer roomStatus;

	/** 页码 */
	@ApiModelProperty(name = "page",value = "页码",required = true,example = "1")
	private Integer page;

	/** 每页大小 */
	@ApiModelProperty(name = "size",value = "每页大小",required = true,example = "10")
	private Integer size;
}
